import request from '@/utils/request'

export default {
    //医院设置列表
    getHospSetList(current,limit,searchObj) {
        return request ({
            url: `/hosp/admin/findPageHospSet/${current}/${limit}`,
            method: 'post',
            data: searchObj  //使用json
        })
    },
    //删除医院设置
    deleteHospSet(id) {
        return request ({
            url: `/hosp/admin/${id}`,
            method: 'delete'
        })
    },
    //批量删除
    batchRemoveHospSet(idList) {
        return request ({
            url: `/hosp/admin/batchRemove`,
            method: 'delete',
            data: idList
        })
    },
    //锁定和取消锁定
    lockHospSet(id,status) {
        return request ({
            url: `/hosp/admin/lockHospitalSet/${id}/${status}`,
            method: 'put'
        })
    },
    //添加医院设置
    saveHospSet(hospitalSet) {
        return request ({
            url: `/hosp/admin/saveHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },
    //院设置id查询
    getHospSet(id) {
        return request ({
            url: `/hosp/admin/getHospSet/${id}`,
            method: 'get'
        })
    },
    //修改医院设置
    updateHospSet(hospitalSet) {
        return request ({
            url: `/hosp/admin/updateHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    }
}
